<template>
  <div class="dashboard-editor-container">
    <panel-group />
    <div class="chart-bg">
      <el-row :gutter="32" class="char-wrap">
        <el-col :xs="24" :sm="24" :lg="12">
          <sale-chart />
        </el-col>
        <el-col :xs="24" :sm="24" :lg="12">
          <device-chart />
        </el-col>
      </el-row>
      <el-row :gutter="32" class="char-wrap">
        <el-col :xs="24" :sm="24" :lg="24">
          <she-bei-rank-chart />
        </el-col>
      </el-row>
      <el-row :gutter="32" class="char-wrap">
        <yao-rank-chart />
      </el-row>
    </div>
  </div>
</template>

<script>
import PanelGroup from './components/PanelGroup'
import SaleChart from '../inner/components/SaleChart'
import DeviceChart from '../inner/components/DeviceChart'
import SheBeiRankChart from './components/SheBeiRankChart'
import YaoRankChart from '../inner/components/YaoRankChart'

export default {
  name: 'DashboardAdmin',
  components: {
    PanelGroup,
    SaleChart,
    DeviceChart,
    SheBeiRankChart,
    YaoRankChart
  },
  data() {
    return {
    }
  },
  methods: {
  }
}
</script>
<style lang="scss">
  .card-panel-col {
  }
  .char-wrap {
    margin-bottom: 36px;
  }
  .merchart-chart {
    position: relative;
    .month-condition {
      position: absolute;
      top: 10px;
      right: 80px;
      z-index: 1;
      width: 80px;
    }
  }
</style>
<style lang="scss" scoped>
  .chart-bg {
    background: #fff;
  }
.dashboard-editor-container {
  padding: 16px 32px 2px 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  }

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 66px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
